home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 1.3 KB | 53 lines | [TEXT/DWat] |
- % Plot a field from the Guide Star Catalog on CD-ROM
- % ARGUMENTS: RAh RAm RAs DECsign DECd DECm DECs FieldSize
-
- % This script sets up the graphlimits and draws a frame
- % with RA, DEC tick marks.
- %
- % The arguments are the field center (RA, DEC) and FieldSize
- % in decimal arc minutes. DECsign is +1 or -1 for north or south.
- % (This is done to avoid the problems with -0 and +0)
-
- clear
-
- graphunits in
- graphframe 2 7 2 7
-
- % Save these values in case we want to use them later
- set RAh &1
- set RAm &2
- set RAs &3
- set DECsign &4
- set DECd &5
- set DECm &6
- set DECs &7
- set FLDsize &8
- set FLDsize FLDsize 60 /
-
- % DECcen = RA of field center in decimal degrees
- set DECcen DECs 60 / DECm + 60 / DECd + DECsign *
- % RAcen = RA of field center in decimal degrees
- set RAcen RAs 60 / RAm + 60 / RAh +
-
- set DECoffset FLDsize 2 /
- set RAoffset FLDsize 2 / 15 / DECcen deg cos /
-
- graphlimits RAcen RAoffset + RAcen RAoffset - DECcen DECoffset - DECcen DECoffset +
- graphticks RAoffset 8 / RAoffset 2 / DECoffset 8 / DECoffset 2 /
-
- pensize 1
- notation hhmmss
- digits 0
- drawaxis bottom inside outside line inside parallel
- drawaxis top inside outside line inside nolabels
- notation ddmmss
- drawaxis left inside outside line inside perpendicular
- drawaxis right inside outside line inside nolabels
- notation general
-
- drawxlabel Right Ascension (2000)
- drawylabel Declination (2000)
-
- close
-
-